from django.urls import path

from .views import LoginView, logout_view,RegisterView, send_sms_captcha, graph_captcha
# 是我们指定的 app_name
app_name = "auth"

urlpatterns = [
    # 函数视图 不要括号  tornado
    path("login/", LoginView.as_view(), name="login"),
    path("register/", RegisterView.as_view(), name="register"),
    path("logout/", logout_view, name="logout_view"),
    path("send-sms-captcha/", send_sms_captcha, name="send_sms_captcha"),
    path("graph-captcha/", graph_captcha, name="graph_captcha"),
]
